package com.hk.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hk.service.EmployeeService;

@RestController
@RequestMapping("emp")
public class EmployeeController {

	@Resource
	private EmployeeService employeeService;
	
	
	@GetMapping("all")
	public Object findAll() {
		return employeeService.findAll();
		
	}
}

